﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using WeddingEventManagement_API;
using System.Collections.Generic;

namespace WeddingEventManagementApp.Tests
{
    [TestClass]
    public class UnitTest1
    {
        public static void Main()
        {
            InvoiceManager im = new InvoiceManager();
            //im.AddPayment(1001, 1234.50M, "Master Card", new Guid("8B4F852F-12F8-43E2-B57D-F65770F3108D"));

            List<string> types = im.GetPaymentTypes();

            //QueryManager q = new QueryManager();
            //var entities = q.AutoSearch("ry");

            //entities.Locations.ForEach(m => Console.WriteLine(m.Name));
            //entities.Events.ForEach(m => Console.WriteLine(m.Title));
            //entities.Clients.ForEach(m => Console.WriteLine(m.FirstName + " " + m.LastName));

            //InvoiceManager im = new InvoiceManager();
            //List<InvoiceItem> items = new List<InvoiceItem>();
            //items.Add(new InvoiceItem { 
            //    Description = "Test description 1",
            //    Name = "Test Item 1",
            //    Price = 125.00M,
            //    Qty = 2
            //});
            //items.Add(new InvoiceItem
            //{
            //    Description = "Test description 2",
            //    Name = "Test Item 2",
            //    Price = 150.00M,
            //    Qty = 5
            //});
            //items.Add(new InvoiceItem
            //{
            //    Description = "Test description 3",
            //    Name = "Test Item 3",
            //    Price = 175.00M,
            //    Qty = 5
            //});

            //im.CreateInvoice(1032, new Guid("8B4F852F-12F8-43E2-B57D-F65770F3108D"), DateTime.Now.AddDays(30), items, "Some invoice notes");
        }
    }
}
